#include "bookmarkitem.h"
#include <QDebug>

BookmarkItem::BookmarkItem(QString url, QString title, QIcon icon, bool isFolder, QObject *parent) :
	QObject(parent),
	m_url(url),
	m_title(title),
	m_icon(icon),
	m_isFolder(isFolder)
{
	if(m_isFolder)
		m_contain = new QVector<BookmarkItem*>;
}

BookmarkItem::~BookmarkItem()
{
//	qDebug() << "I'm the BookmarkItem";
//	qDebug() << "url =" << m_url;
//	qDebug() << "title =" << m_title;
//	qDebug() << "isFolder =" << m_isFolder;
//	qDebug() << "And I'm delete...";
	if(m_isFolder)
	m_contain->clear();
}
